package pattern.behavioral.observer.simple;

import java.util.Observable;

/**
 * 新闻中心
 * @author: chaoyang.ren  
 * @date:Jun 2, 2017  
 * @time:3:12:36 PM   
 * @email:chaoyang.ren@foxmail.com  
 * @version: 1.0
 */
public class NewsCenter extends Observable {
	public void publishNews(String news){
		System.out.println("发布新闻");
		super.setChanged();
		super.notifyObservers(news);
	}
}

